Add a boxed type for cairo_pattern_t.
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 1 Sep 2010 23:45:17 +0000 (01:45 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:38:11 +0000 (15:38 +0100)
gdk/gdkcairo.c
gdk/gdkcairo.h

index 0d4b8bde09b095e83267c960daec0c0794d89439..60ac6219430210b5d6710f6ddb9b655223b19d95 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <math.h>
 
+G_DEFINE_BOXED_TYPE (cairo_pattern_t, gdk_cairo_pattern, cairo_pattern_reference, cairo_pattern_destroy)
+
 /**
  * SECTION:cairo_interaction
  * @Short_description: Functions to support using Cairo
index 67e08aa933ef6939147a8d7fc2e88c6e7c76a5de..836c0be079b42b4ce8a56a396f0268207c25d029 100644 (file)
@@ -32,6 +32,9 @@
 G_BEGIN_DECLS
 
 cairo_t *gdk_cairo_create            (GdkWindow          *window);
+#define GDK_TYPE_CAIRO_PATTERN (gdk_cairo_pattern_get_type ())
+
+GType    gdk_cairo_pattern_get_type  (void) G_GNUC_CONST;
 gboolean gdk_cairo_get_clip_rectangle(cairo_t            *cr,
                                       GdkRectangle       *rect);